package com.scm.biz.service._impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.scm.biz.bean.OrderTaskPerformer;
import com.scm.biz.dao.MsgNoticeDao;
import com.scm.biz.dao.OrderTaskPerformerDao;
import com.scm.biz.service.OrderTaskPerformerService;
@Service
public class OrderTaskPerformerServiceImpl implements OrderTaskPerformerService {
	@Autowired
	OrderTaskPerformerDao orderTaskPerformerDao;
	@Autowired
	MsgNoticeDao msgNoticeDao;
	@Override
	public void addPerformer(OrderTaskPerformer orderTaskPerformer) {
		orderTaskPerformerDao.insert(orderTaskPerformer);
		msgNoticeDao.updateFinish(orderTaskPerformer.getPerformer(), orderTaskPerformer.getBusinessId(), orderTaskPerformer.getBusinessType());
	}

}
